package Java7_Concurrency_Cookbook.concurrency_test.use_findbugs;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author lixiangke
 * @date 2017/12/5
 */
public class Main {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        for (int i = 0; i < 10; i++) {
            Task task = new Task(lock);
            Thread thread = new Thread(task);
            thread.run();
        }
    }
}
